package top.lingkang.finalsession.solon;

import org.noear.solon.core.handle.Context;
import top.lingkang.finalsession.FinalSessionConfig;
import top.lingkang.finalsession.core.IdGenerate;

import java.util.UUID;

/**
 * solon 默认的id生成策略
 *
 * @author lingkang
 * @create by 2024/5/9 17:15
 */
public class FinalIdGenerateSolon implements IdGenerate<Context> {
    @Override
    public String generateId(Context request, FinalSessionConfig config) {
        return UUID.randomUUID().toString();
    }
}
